#include "TwitterSearchQuery.h"
#include  <algorithm> 
#include <iostream>

TwitterSearchQuery::TwitterSearchQuery(void)
{
	setWithUId();
}

TwitterSearchQuery::~TwitterSearchQuery(void)
{
}

void TwitterSearchQuery::setKeys(string q)
{
	string enKeys;
	Poco::URI::encode(q, ":/&?@$;+=", enKeys);
   _query["q"] = enKeys;
}
void TwitterSearchQuery::setLang(string lang)
{
	_query["lang"] = lang;
}
void TwitterSearchQuery::setLocal(string locale)
{
	_query["locale"] = locale;
}
void TwitterSearchQuery::setPage(string page)
{
	_query["page"] = page;
}
void TwitterSearchQuery::setResType(string res_type)
{
	_query["result_type"] = res_type;
}
void TwitterSearchQuery::setRpp(string rpp)
{
	_query["rpp"] = rpp;
}
void TwitterSearchQuery::setWithUId()
{
	_query["with_twitter_user_id"] = "t";
}

